package com.sunwayworld.basemodule.rm.client.resource;

import com.sunwayworld.basemodule.rm.client.bean.LimsClientBean;
import com.sunwayworld.basemodule.rm.client.service.LimsClientService;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.support.base.resource.GenericResource;
import com.sunwayworld.framework.support.choosable.resource.GenericChoosableResource;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@RequestMapping("/secure/basemodule/rm/clients")
public interface LimsClientResource extends GenericResource<LimsClientService, LimsClientBean, Long>, GenericChoosableResource<LimsClientService, LimsClientBean, Long> {
    @RequestMapping(value = "/action/enableClient", method = RequestMethod.PUT)
    void enableClient(RestJsonWrapperBean wrapper);

    @RequestMapping(value = "/action/disableClient", method = RequestMethod.PUT)
    void disableClient(RestJsonWrapperBean wrapper);

    @PutMapping("/update/persons")
    void updatePersons(RestJsonWrapperBean wrapper);
}
